<?php /*a:6:{s:38:"F:\WWW\youni\view\admin\data\line.html";i:1568107709;s:40:"F:\WWW\youni\view\admin\common\base.html";i:1570370238;s:42:"F:\WWW\youni\view\admin\common\header.html";i:1567752197;s:39:"F:\WWW\youni\view\admin\common\css.html";i:1570602032;s:42:"F:\WWW\youni\view\admin\common\footer.html";i:1567752456;s:38:"F:\WWW\youni\view\admin\common\js.html";i:1570520786;}*/ ?>


    <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>优你后台</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->



    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>

<link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/static/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="/static/admin/css/animate.css" rel="stylesheet">
<link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
<link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="/static/admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="/static/admin/css/plugins/switchery/switchery.css" rel="stylesheet">
<link href="/static/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">

<link href="/static/admin/css/plugins/fileinput/fileinput.css" rel="stylesheet">
<link href="/static/admin/css/common.css" rel="stylesheet">

<style>
    .table > tbody > tr {
        text-align: center;
    }
    .table tr>th{
        text-align: center;
    }
    .dropdown-menu > .active > a{
        /*background-color:#1ab394;*/
    }
</style>
</head>







<div class="animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>在线操作</h5>
            </div>
            <div id="database" class=" ibox-content">
                <div class="alert alert-info">
                    可在线进行一些简单的数据库表优化或修复,查看表结构和数据。也可以进行SQL语句的操作
                </div>
                <div class="row">
                    <div class="col-xs-4">
                        <h4>查询结果</h4>
                    </div>
                    <div class="col-xs-8 text-right">
                        <form action="<?php echo url('data/query'); ?>" method="post" name="infoform" target="resultframe">
                            <input type="hidden" name="do_action" id="topaction" />
                            <div class="btn-group">
                                <button data-toggle="dropdown" class="btn btn-primary btn-embossed dropdown-toggle" type="button">基础查询 <span class="caret"></span>
                                </button>
                                <div class="row dropdown-menu pull-right" style="width:300px;">
                                    <div class="col-xs-6">
                                        <select class="form-control select-striped" id="tablename" name="tablename[]" multiple="multiple" id="aa">

                                            <?php if(is_array($tables) || $tables instanceof \think\Collection || $tables instanceof \think\Paginator): $i = 0; $__LIST__ = $tables;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                            <option value="<?php echo htmlentities($vo['Name']); ?>" title=""><?php echo htmlentities($vo['Name']); ?></option>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>

                                        </select>
                                    </div>
                                    <div class="col-xs-6">
                                        <ul id="subaction" class="list-unstyled">
                                            <li><input type="submit" name="submit1" value="查看表结构" rel="viewinfo" class="btn btn-primary btn-embossed btn-sm btn-block"/></li>
                                            <li><input type="submit" name="submit2" value="查看表数据" rel="viewdata" class="btn btn-primary btn-embossed btn-sm btn-block"/></li>
                                            <li><input type="submit" name="submit3" value="优化表" rel="optimizes" class="btn btn-primary btn-embossed btn-sm btn-block" /></li>
                                            <li><input type="submit" name="submit4" value="修复表" rel="repairs" class="btn btn-primary btn-embossed btn-sm btn-block"/></li>

                                        </ul>
                                    </div>
                                    <div class="clear"></div>
                                </div>

                            </div>
                        </form>
                    </div>
                </div>

                <div class="well" id="resultparent" style="height: 400px">
                    <iframe name="resultframe" frameborder="0" id="resultframe" style="height:100%;" width="100%" height="100%"></iframe>
                </div>

                <form action="<?php echo url('data/query'); ?>" method="post" id="sqlexecute" name="form1" target="resultframe">
                    <input type="hidden" name="do_action" value="doquery" />
                    <div class="form-group">
                        <textarea name="sqlquery" placeholder="请输入SQL语句，支持批量查询，多条SQL以分号(;)分格" cols="60" rows="5" class="form-control" id="sqlquery"></textarea>
                    </div>

                    <input type="submit" class="btn btn-primary btn-embossed" value="执行" />
                    <input type="reset" class="btn btn-default btn-embossed" value="重置" />
                </form>
                <div id="backuplist"></div>

            </div>
        </div>
    </div>
</div>



    



    <!-- 全局js -->
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/admin/js/plugins/layer/layer.min.js"></script>
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/static/admin/js/plugins/switchery/switchery.js"></script><!--IOS开关样式-->

<!-- 自定义js -->
<script src="/static/admin/js/hplus.js?v=4.1.0"></script>
<script src="/static/admin/js/contabs.js"></script>
<script src="/static/admin/js/content.js"></script>

<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!-- 第三方插件 -->
<!--<script src="/static/admin/js/plugins/pace/pace.min.js"></script>-->
<script src="/static/admin/js/plugins/fileinput/fileinput.js"></script>
<script src="/static/admin/js/plugins/fileinput/fileinput_locale_zh.js"></script>
<!-- 欢迎信息 -->
<script src="/static/admin/js/welcome.js"></script>


<script src="/static/admin/js/common.js"></script>

<script src="/static/admin/js/ry-ui.js"></script>
<script>
    $(document).ready(function(){
        $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green"});
        //IOS开关样式配置
        var elem = document.querySelector('.js-switch');
        var switchery = new Switchery(elem, {
            color: '#1AB394'
        });
        var config = {
            '.chosen-select': {},
        }
    });

</script>



<script>
    $(function () {

        //禁止在操作select元素时关闭dropdown的关闭事件
        $("#database").on('click', '.dropdown-menu select', function (e) {
            e.stopPropagation();
        });
        //事件按钮操作
        $("#database").on("click", "ul#subaction li input", function () {
            $("#topaction").val($(this).attr("rel"));
            return true;
        });
    });
</script>
